:root{
	--bg:#0b1020;
	--panel:#0f1724;
	--glass: rgba(255,255,255,0.04);
	--accent-1: #6ee7b7; /* mint */
	--accent-2: #7c5cff; /* purple */
	--accent-3: #00b4ff; /* cyan */
	--muted: #94a3b8;
	--danger:#ff6b6b;
}

*{box-sizing:border-box}
html,body,#app{height:100%;margin:0;font-family:Inter, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;background: radial-gradient(ellipse at 10% 10%, rgba(124,92,255,0.06), transparent 10%), linear-gradient(180deg,#071021 0%, #081226 50%, #06101b 100%); color: #e6f0ff}
.app-container{padding:20px}

/* center app */
.chat-container{max-width:1000px;margin:24px auto;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;height:84vh;background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));box-shadow: 0 8px 30px rgba(2,6,23,0.7);border:1px solid rgba(124,92,255,0.12);position:relative}

.chat-header{padding:18px 20px;border-bottom:1px solid rgba(255,255,255,0.03);display:flex;align-items:center;justify-content:space-between;background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));}
.chat-header h2{margin:0;font-size:18px;color:var(--accent-2);letter-spacing:0.6px}
.chat-header .meta{color:var(--muted);font-size:12px}

.chat-body{padding:18px;flex:1;overflow:auto;display:flex;flex-direction:column;gap:12px;background-image: linear-gradient(180deg, rgba(124,92,255,0.02) 0%, transparent 40%);} 

.system-note{ text-align:center; color:var(--muted); font-size:13px }

.chat-input{display:flex;gap:12px;padding:14px;border-top:1px solid rgba(255,255,255,0.03);align-items:center;background:linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.06));}
.input{flex:1;padding:12px 14px;border-radius:10px;background:var(--glass);border:1px solid rgba(255,255,255,0.03);color:var(--muted);outline:none}
.input:focus{box-shadow:0 0 18px rgba(124,92,255,0.08);border-color:rgba(124,92,255,0.18);color:#fff}

.btn{padding:10px 14px;border-radius:10px;border:none;cursor:pointer;background:rgba(255,255,255,0.03);color:var(--muted)}
.btn.primary{background:linear-gradient(90deg,var(--accent-2),var(--accent-3));color:#061021;box-shadow:0 8px 30px rgba(6,16,33,0.6)}

/* message row with avatar and bubble */
.message-row{display:flex;align-items:flex-end;gap:12px}
.message-row.ai-row{justify-content:flex-start}
.message-row.user-row{justify-content:flex-end}

.avatar{width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#071021;flex:0 0 48px;box-shadow: 0 4px 18px rgba(2,6,23,0.6);}
.avatar.user{background:linear-gradient(135deg,#00d4ff,#0066ff);color:white}
.avatar.ai{background:linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));color:var(--accent-2);}

.love-app .avatar.ai{background:linear-gradient(135deg,#ff9ad8,#ff6fb6);color:#0b1020}
.manus-app .avatar.ai{background:linear-gradient(135deg,#9be7ff,#6fd3ff);color:#0b1020}

.message-bubble{max-width:72%;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,0.03);backdrop-filter: blur(6px);border:1px solid rgba(255,255,255,0.03);color:#e6f0ff;box-shadow:inset 0 -2px 8px rgba(0,0,0,0.4)}
.message-row.user-row .message-bubble{background:linear-gradient(90deg,#00b4ff,#0066ff);color:#ffffff;border:1px solid rgba(0,180,255,0.18);box-shadow:0 8px 30px rgba(0,92,255,0.12);font-weight:600}

/* ensure avatar spacing when row reversed */
.message-row.user-row .avatar{margin-left:12px;margin-right:0}
.message-row.ai-row .avatar{margin-right:12px;margin-left:0}

/* neon accent on messages when hovering */
.message-bubble:hover{box-shadow:0 8px 30px rgba(124,92,255,0.08);transform:translateY(-2px);transition:all 160ms ease}

/* stronger text contrast for content inside bubbles */
.message-bubble{color:var(--text-color, #e6f0ff)}
.message-bubble, .message-bubble *{color:inherit}
.message-bubble a{color:var(--accent-3);}

/* ensure long words/URLs wrap */
.message-bubble, .message-bubble a{word-break:break-word;overflow-wrap:anywhere}
.message-bubble a{color:var(--accent-3);text-decoration:underline}

/* code block style inside messages */
.message-bubble code{background:rgba(0,0,0,0.25);padding:6px;border-radius:6px;color:#fff;display:inline-block}

/* images scale */
.chat-body img, .message-bubble img{max-width:100%;height:auto;border-radius:8px}

/* subtle message appear animation */
@keyframes neonPop{0%{opacity:0;transform:translateY(6px) scale(0.98)}100%{opacity:1;transform:none}}
.message-row{animation:neonPop 220ms cubic-bezier(.2,.9,.3,1)}

/* scrollbar theme */
.chat-body::-webkit-scrollbar{width:10px}
.chat-body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,var(--accent-3),var(--accent-2));border-radius:10px}

/* responsive rules */
@media (max-width: 1000px){.chat-container{max-width:92vw;height:86vh}}
@media (max-width: 720px){
	.chat-container{height:100vh;border-radius:0;margin:0}
	.avatar{width:40px;height:40px;flex:0 0 40px}
	.message-bubble{max-width:78%}
	.chat-input{padding:12px}
	/* increase font size for readability on small screens */
	.message-bubble{font-size:15px}
}

/* Home hero styles */
.home-hero{max-width:1200px;margin:24px auto;padding:40px 24px;text-align:center}
.hero-top{padding:40px 0}
.hero-title{font-size:48px;color:transparent;letter-spacing:2px;margin:0;padding:0;background:linear-gradient(90deg,var(--accent-3),var(--accent-2));-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 6px 18px rgba(7,16,33,0.6));text-shadow:0 0 18px rgba(0,180,255,0.25)}
.hero-sub{color:var(--muted);margin-top:8px}

.card-list{display:grid;grid-template-columns:repeat(2,1fr);gap:36px;align-items:stretch;margin-top:24px}
.app-card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));border-radius:16px;padding:32px;box-shadow:0 12px 40px rgba(2,6,23,0.6);border:1px solid rgba(124,92,255,0.08);display:flex;align-items:center;justify-content:center}
.card-inner{max-width:360px;text-align:center}
.icon-circle{width:96px;height:96px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-size:40px;color:#061021;box-shadow:0 10px 30px rgba(0,0,0,0.6)}
.icon-circle.heart{background:linear-gradient(135deg,#ff9ad8,#ff6fb6);box-shadow:0 14px 30px rgba(255,107,179,0.14)}
.icon-circle.bot{background:linear-gradient(135deg,#9be7ff,#6fd3ff);box-shadow:0 14px 30px rgba(82,188,255,0.12)}
.card-title{font-size:22px;margin:6px 0;color:#e6f0ff}
.card-desc{color:var(--muted);font-size:14px;margin-bottom:18px}

@media (max-width: 860px){.card-list{grid-template-columns:1fr;gap:18px;padding:0 40px}.hero-title{font-size:40px}}


